/*
 * Created by Dev c++ 5.11
 * Author: liyih
 * Date: 2018/03/14
 */

#include <iostream>
#include <string>
using namespace std;
int main()
{
	string s, t;
	cin>>t;
	cin>>s;
	string::reverse_iterator it = s.rbegin();
	for(; it != s.rend(); it++)
		cout<<*it<<" ";
	return 0;
}
